import { render, createVNode } from 'vue';
import messageItemVue from './messageItem.vue';

/**
 * 创建消息节点
 */
export function createMessageItem(target: HTMLDivElement) {
	const VNode = createVNode(messageItemVue);

	render(VNode, target);

	return function () {
		render(null, target);
	};
}
